package org.bonorsoft.modules.system.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;

/**
 * @Description: 信息通知
 * @Author: WilliamYe
 * @Date:   2021-02-24
 * @Version: V1.0
 */
@Data
@TableName("sys_messages")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SysMessages {

	/**id*/
	@TableId(type = IdType.ID_WORKER_STR)
	private java.lang.String id;
	/**标题*/
	@Excel(name = "标题", width = 15)
	private java.lang.String title;
	/**地址编码*/
	private java.lang.String dzbm;
	/**内容*/
	@Excel(name = "内容", width = 15)
	private java.lang.Object msgContent;
	/**接收人*/
	private java.lang.String toUserId;
	/**发送人*/
	private java.lang.String fromUserId;
	/**阅读状态*/
	private java.lang.String readStatus;
	/**开始时间*/
	@Excel(name = "开始时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private java.util.Date startTime;
	/**结束时间*/
	@Excel(name = "结束时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private java.util.Date endTime;
	/**发布人*/
	@Excel(name = "发布人", width = 15)
	private java.lang.String sender;
	/**优先级（L低，M中，H高）*/
	@Excel(name = "优先级（L低，M中，H高）", width = 15)
	private java.lang.String priority;
	/**消息类型1:通知公告2:系统消息*/
	@Excel(name = "消息类型1:通知公告2:系统消息", width = 15)
	private java.lang.String msgCategory;
	/**通告对象类型（USER:指定用户，ALL:全体用户）*/
	@Excel(name = "通告对象类型（USER:指定用户，ALL:全体用户）", width = 15)
	private java.lang.String msgType;
	/**发布状态（0未发布，1已发布，2已撤销）*/
	@Excel(name = "发布状态（0未发布，1已发布，2已撤销）", width = 15)
	private java.lang.String sendStatus;
	/**发布时间*/
	@Excel(name = "发布时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private java.util.Date sendTime;
	/**撤销时间*/
	@Excel(name = "撤销时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private java.util.Date cancelTime;
	/**删除状态（0，正常，1已删除）*/
	@Excel(name = "删除状态（0，正常，1已删除）", width = 15)
	private java.lang.String delFlag;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
	private java.lang.String createBy;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
	private java.util.Date createTime;
	/**更新人*/
	@Excel(name = "更新人", width = 15)
	private java.lang.String updateBy;
	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private java.util.Date updateTime;
	/**指定用户*/
	@Excel(name = "指定用户", width = 15)
	private java.lang.Object userIds;
	/**摘要*/
	@Excel(name = "摘要", width = 15)
	private java.lang.Object msgAbstract;
}
